A Parser for Harmonic Context-Free Grammars
نویسنده
چکیده
Harmonic Grammar is a connectionist-derived grammar formalism, of which Optimality Theory is a kind of limiting case. Harmonic Grammar is expressive enough to specify the trees that are correct parses on a given contextfree grammar. Here, we show how to construct a connectionist parsing network which finds correct parses given a sentence, of if none exist, signals a rejection. Finally, a brief comparison to other connectionist parsing work is provided. Harmonic grammar is a grammar formalism which uses only soft rules of the following form: If condition X is violated, then the wellformedness (Harmony) of the structure is diminished by CX . [Legendre et al., 1990, 388] A linguistic theory in Harmonic grammar is a set of soft rules and a set of representational possibilities. Applying the soft rules to any representation yields the Harmony value for that representation. A representation with maximal Harmony from some class defined by common substructure — the inputs — is said to be the winning candidate. In Optimality Theory [Prince and Smolensky, 1993] the soft rules are ranked and the CX values are arranged so that no number of violations of lower-ranked soft rules could ever outweigh a violation by a higher ranked one. Harmonic grammar is expressive enough to specify the context-free languages [Smolensky, 1993]. Here Harmony maximization is made to serve as a processing algorithm for a parser. The design for the parser is a way of systematically arranging networks of threshold logic units so that they implement exactly the Harmonic grammar rules for context-free grammars. They maximize the Harmony of representations that share the same terminal entries. The general idea is that these networks do this by de-activating pieces of bad analyses until only correct analyses remain. How Harmonic Grammar specifies context-free languages Harmonic context-free grammar rules (as first presented in [Smolensky, 1993]) are integer occurrence and cooccurrence penalties that are defined on trees. Trees X
منابع مشابه
Studying impressive parameters on the performance of Persian probabilistic context free grammar parser
In linguistics, a tree bank is a parsed text corpus that annotates syntactic or semantic sentence structure. The exploitation of tree bank data has been important ever since the first large-scale tree bank, The Penn Treebank, was published. However, although originating in computational linguistics, the value of tree bank is becoming more widely appreciated in linguistics research as a whole. F...
متن کاملThe Parsing of Extended Context-free Grammars
Extended context-free grammars are context-free grammars in which the right-hand sides of productions are allowed to be any regular language rather than being restricted to be any nite language. We develop a novel approach to top-down predictive parser construction for extended context-free grammars that is based on rewriting of partial syntax trees. This work is motivated by our development of...
متن کاملA New Method for Dependent Parsing
Dependent grammars extend context-free grammars by allowing semantic values to be bound to variables and used to constrain parsing. Dependent grammars can cleanly specify common features that cannot be handled by context-free grammars, such as length fields in data formats and significant indentation in programming languages. Few parser generators support dependent parsing, however. To address ...
متن کاملAn Online Parser for Contextual Grammars with Context–Free Selectors
Here we describe the linguistic relevance of Contextual Grammars with Context–Free Selectors. They allow the simple representation of many non–context–free phenomena such as the copy language. Up to now, this specific type of selector has hardly ever been addressed because even for simpler types no efficient parsing algorithms were known. In this paper, we describe a new polynomial parser for a...
متن کاملSimple LR ( k ) Grammars Franklin
A class of context-free grammars, called the "Simple LR(k)" or SLR(k) grammars is defined. This class has been shown to include weak precedence and simple precedence grammars as proper subsets. How to construct parsers for the SLR(k) grammars is also shown. These parser-construction techniques are extendible to cover all of the LR(k) grammars of Knuth; they have been implemented and by direct c...
متن کامل